<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/{$page_theme | default: 'default'}/easyui.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/style/my.css">
    
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/javascript/my.js"></script>
    
</head>
<body onpageshow="resetPagination('dg')">
    {datagrid id="dg" datasource="/flow/NodeTransitionService/findByFlowDefinitionId.do?flow_def_id=`$Request.flow_def_id`" view="f_node_transition" }
    {form id="dlg" view="f_node_transition" }
    <script>
    var flow_def_id={$Request.flow_def_id};
    {literal}
    action_prehandlers.createOne=function(){
        getFormItem('dlg', 'from_node_id').combobox('reload', '/flow/NodeService/findByFlowDefinitionId.do?$value=rows&flow_def_id='+flow_def_id);
        getFormItem('dlg', 'to_node_id').combobox('reload', '/flow/NodeService/findByFlowDefinitionId.do?$value=rows&flow_def_id='+flow_def_id);
    	return {"flow_def_id":flow_def_id}
    }
    action_prehandlers.updateOne=function(){
        getFormItem('dlg', 'from_node_id').combobox('reload', '/flow/NodeService/findByFlowDefinitionId.do?$value=rows&flow_def_id='+flow_def_id);
        getFormItem('dlg', 'to_node_id').combobox('reload', '/flow/NodeService/findByFlowDefinitionId.do?$value=rows&flow_def_id='+flow_def_id);
    	return {"flow_def_id":flow_def_id}
    }
    {/literal}
    </script>
</body>
</html>